package com.blindBox.front.commonResult;

import lombok.Data;

//返回给前端的通用消息类
@Data
public class MsgBackToFront {
    //返回的数据
    private Object data;
    //返回的状态
    private String status;
    //返回给前端的状态
    public final static String LOGIN_ERROR = "login_error";//用户名或者密码错误
    public final static String TOKEN_ERROR = "token_error";//token错误
    public final static String EXCEPTION_ERROR = "exception_error";//出现异常
    public final static String HANDLE_SUCCESS = "handle_success";//处理成功
    public final static String REGISTER_REPEAT = "register_repeat";//用户名重复
    public final static String IP_REPEAT = "ip_repeat";//ip重复注册
    public final static String DATABASE_ERROR = "database_error";//数据库操作出现异常
    public final static String NONE_PAPER = "none_paper";//没有纸条可以抽取
     public final static String OVER_MAX_TAKE_NUMS="over_max_take_nums";//超过最大单日拿出纸条数量
    public final static String OVER_MAX_LAUCH_NUMS="over_max_lauch_nums";//超过最大单日放入纸条次数
    public final static String MAIL_FORMAT_ERROR="mail_format_error";//邮箱格式不正确
    public final static String MAIL_REPEAT="mail_repeat";//邮箱重复注册
    public final static String MAIL_ERROR="mail_error";//邮箱填写错误
    public final static String NO_USER="no_user";//当前用户不存在
    public final static String NO_SELF_IMGS="no_self_imgs";//没有上传自拍照
    public final static String USER_NO_RIGHT="user_no_right";//用户没有权限
     public final static String CODE_EXPIRED="code_expired";//验证码过期
    public final static String CODE_ERROR="code_error";//验证码输入错误

    public MsgBackToFront(Object data, String status) {
        this.data = data;
        this.status = status;
    }

}
